import { Notification, type NotificationConfig } from '@arco-design/web-vue';

export default function useNoticiation() {
  const success = (config: string | NotificationConfig) => {
    Notification.success(config);
  };

  const warning = (config: string | NotificationConfig) => {
    Notification.warning(config);
  };

  return {
    success,
    warning,
  };
}
